/**
 * 
 */
package com.arx.item;

import com.arx.interactive.InteractiveObject;

/**
 * @author Donald
 */
public class InventoryData {
	private InteractiveObject	io;
	private int					sizex;
	private int					sizey;
	InventorySlot[][]			slot	= new InventorySlot[20][20];
	public InteractiveObject getIo() {
		return io;
	}
	public int getSizex() {
		return sizex;
	}
	public int getSizey() {
		return sizey;
	}
	public InventorySlot getSlot(final int row, final int col) {
		InventorySlot is = null;
		if (row >= 0
				&& row < 20
				&& col >= 0
				&& col < 20) {
			is = slot[row][col];
		}
		return is;
	}
	public void setIo(InteractiveObject io) {
		this.io = io;
	}
	public void setSizex(int sizex) {
		this.sizex = sizex;
	}
	public void setSizey(int sizey) {
		this.sizey = sizey;
	}
}
